Skip to content

6.x merge#395

Merged
LordSimal merged 8 commits into6.xfrom
6.x-merge
Apr 4, 2026
Merged

6.x merge#395
LordSimal merged 8 commits into6.xfrom
6.x-merge

Conversation

@LordSimal
Copy link
Copy Markdown
Contributor

No description provided.

dereuromark and others added 8 commits January 22, 2026 10:26
* Add TypeFactory::getMap($type) => getMapped($type) rector rule

In CakePHP 5.3, calling TypeFactory::getMap() with a type argument
is deprecated. Use getMapped() instead for single-type lookups.

Fixes #354

* Update CI to use PHP 8.2 (required by CakePHP 5.x)
…383)

* Add BreadcrumbsHelper add/prepend => addMany/prependMany rector rule

In CakePHP 5.3, passing an array of crumbs to BreadcrumbsHelper::add()
or prepend() is deprecated. Use addMany() or prependMany() instead.

The rector detects when the first argument is an array containing
nested arrays (array of crumbs) vs a single crumb with title/url keys.

* Update CI to use PHP 8.2 (required by CakePHP 5.x)

---------

Co-authored-by: Mark Story <mark@mark-story.com>
Fix use of deprecated Expr\ArrayItem over Node\ArrayItem
# Conflicts:
#	.github/workflows/ci.yml
#	config/rector/sets/cakephp53.php
#	src/Rector/Cake5/BreadcrumbsHelperAddManyRector.php
#	src/Rector/Cake5/TypeFactoryGetMappedRector.php
@LordSimal LordSimal merged commit c3ba0a8 into 6.x Apr 4, 2026
4 of 5 checks passed
@LordSimal LordSimal deleted the 6.x-merge branch April 4, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants